cc.Class({
    extends: cc.Component,

    properties: {
        sprBg: cc.Sprite,

    },

    onLoad(){
        this.node.on('click', () => {
            F.Audio.changeFuckMusicMuteState(true);
            F.Audio.changeFuckEffectMuteState();
            this._updateFuckBtnAudio();
        }, this)
    },

    onEnable() {
        this._updateFuckBtnAudio();
    },

    _updateFuckBtnAudio() {
        let isMute = F.Audio.getIsFuckMusicMute();
        let url = 'textures_for_guosheng/audio1';
        if (isMute) {
            url = 'textures_for_guosheng/audio2';
        }
        F.Common.setSpriteFrame(this.sprBg, url);
    },
    // update (dt) {},
});
